<?php load_header() ?>

<section id="">
    <div class="container">
		<div class="section-heading scrollpoint sp-effect3">
            <h1>Sign In</h1>
            <div class="divider"></div>

            <div class="row">
                <label><?php echo anchor('user/register', 'Or Register an account?') ?></label>
            </div>

            <?php echo form_open('user/perform_signin', 'class="text-left" role="form" '); ?>
            <div style="margin: 10px auto; max-width: 400px;" class="section-heading">

                <?php $has_error = ''; ?>
                <?php if($this->session->flashdata('error')) : ?>
                <div class="alert alert-danger">  
                <?php 
                    $has_error = 'has-error';
                    echo $this->session->flashdata('error');
                ?>
                </div>
                <?php endif; ?>

                <div class="form-group <?php echo $has_error; ?>">
                    <?php echo form_input('username', '', 'class="form-control" placeholder="Username"') ?>
                </div>
                <div class="form-group <?php echo $has_error; ?>">
                    <?php echo form_password('password', '', 'class="form-control" placeholder="Password"') ?>
                </div>
                <div class="form-group">
                	<?php echo form_submit('submit', 'Sign In', 'class="btn btn-primary" style="width: 100%"'); ?>
                </div>
            </div>

            <?php echo form_close(); ?>

        </div>
	</div>
</section>


<?php load_content_footer() ?>

<?php #this page is closed by this footter ?>
<?php load_footer() ?>